package com.example.mrzhou.srtfoodapplication;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TabHost;

public class SRTfoodMainActivity extends TabActivity {

    //主界面显示

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.home_page);
        TabHost tabHost=getTabHost();
        TabHost.TabSpec tab1=tabHost.newTabSpec("tab1")
                .setIndicator("",getResources().getDrawable(R.drawable.fresh))
                .setContent(R.id.tab01);
        tabHost.addTab(tab1);
        TabHost.TabSpec tab2=tabHost.newTabSpec("tab2")
                .setIndicator("",getResources().getDrawable(R.drawable.my))
                .setContent(R.id.tab02);
        tabHost.addTab(tab2);
        TabHost.TabSpec tab3=tabHost.newTabSpec("tab3")
                .setIndicator("",getResources().getDrawable(R.drawable.setting))
                .setContent(R.id.tab03);
        tabHost.addTab(tab3);

    }
}
